package controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import pojo.Subjects;
import service.SubjectsService;

import javax.annotation.Resource;

@Controller
public class SubjectsController {
    @Resource
    private SubjectsService service;


    @RequestMapping("/list")
    public String  getInfo(Model model){
        model.addAttribute("Subjects", service.getInfo());
        System.out.println("ssss");
        return "list";
    }





}
